<?php
class TableModel {	
	
	private $table_title = 'Table';
	
	private $table_data;
	private $table_header;
	
	private $add_link;
	private $edit_link;
	private $delete_link;
	private $search_link;
	
	private $more_links;
	private $custom_fields;
	
	private $date;
	private $data_count;
	
	private $line_per_page = 10;
	private $page = 0;
	
	private $table_multi_actions = array('delete'=>'削除');
	
	public function TableModel(){
		$this->table_header = array();
	}
	/**
	 * @return the $table_data
	 */
	public function getTable_data() {
		return $this->table_data;
	}

	/**
	 * @return the $table_header
	 */
	public function getTable_header() {
		return $this->table_header;
	}

	/**
	 * @return the $add_link
	 */
	public function getAdd_link() {
		return $this->add_link;
	}

	/**
	 * @return the $edit_link
	 */
	public function getEdit_link() {
		return $this->edit_link;
	}

	/**
	 * @return the $delete_link
	 */
	public function getDelete_link() {
		return $this->delete_link;
	}

	/**
	 * @return the $more_links
	 */
	public function getMore_links() {
		return $this->more_links;
	}

	/**
	 * @return the $custom_fields
	 */
	public function getCustom_fields() {
		return $this->custom_fields;
	}

	/**
	 * @return the $date
	 */
	public function getDate() {
		return $this->date;
	}

	/**
	 * @return the $data_count
	 */
	public function getData_count() {
		return $this->data_count;
	}

	/**
	 * @return the $line_per_page
	 */
	public function getLine_per_page() {
		return $this->line_per_page;
	}

	/**
	 * @param field_type $table_data
	 */
	public function setTable_data($table_data) {
		$this->table_data = $table_data;
	}

	/**
	 * @param field_type $table_header
	 */
	public function setTable_header($table_header) {
		$this->table_header = $table_header;
	}

	/**
	 * @param field_type $add_link
	 */
	public function setAdd_link($add_link) {
		$this->add_link = $add_link;
	}

	/**
	 * @param field_type $edit_link
	 */
	public function setEdit_link($edit_link) {
		$this->edit_link = $edit_link;
	}

	/**
	 * @param field_type $delete_link
	 */
	public function setDelete_link($delete_link) {
		$this->delete_link = $delete_link;
	}

	/**
	 * @param field_type $more_links
	 */
	public function setMore_links($more_links) {
		$this->more_links = $more_links;
	}

	/**
	 * @param field_type $custom_fields
	 */
	public function setCustom_fields($custom_fields) {
		$this->custom_fields = $custom_fields;
	}

	/**
	 * @param field_type $date
	 */
	public function setDate($date) {
		$this->date = $date;
	}

	/**
	 * @param field_type $data_count
	 */
	public function setData_count($data_count) {
		$this->data_count = $data_count;
	}

	/**
	 * @param field_type $line_per_page
	 */
	public function setLine_per_page($line_per_page) {
		$this->line_per_page = $line_per_page;
	}
	
	public function addHeader($key, $display, $sortable = false){
		$this->table_header[$key] = array($display, $sortable);		
	}
	/**
	 * @return the $page
	 */
	public function getPage() {
		return $this->page;
	}

	/**
	 * @param field_type $page
	 */
	public function setPage($page) {
		$this->page = $page;
	}
	/**
	 * @return the $table_title
	 */
	public function getTable_title() {
		return $this->table_title;
	}

	/**
	 * @param field_type $table_title
	 */
	public function setTable_title($table_title) {
		$this->table_title = $table_title;
	}
	/**
	 * @return the $search_link
	 */
	public function getSearch_link() {
		return $this->search_link;
	}

	/**
	 * @param field_type $search_link
	 */
	public function setSearch_link($search_link) {
		$this->search_link = $search_link;
	}
	/**
	 * @return the $table_multi_actions
	 */
	public function getTable_multi_actions() {
		return $this->table_multi_actions;
	}

	/**
	 * @param field_type $table_multi_actions
	 */
	public function setTable_multi_actions($table_multi_actions) {
		$this->table_multi_actions = $table_multi_actions;
	}
}